package com.isdepci.project.result.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.result.mapper.SourceMapper;
import com.isdepci.project.result.domain.Source;
import com.isdepci.project.result.service.ISourceService;

/**
 * 范围3分类Service业务层处理
 *
 * @author isdepci
 * @date 2023-09-05
 */
@Service
public class SourceServiceImpl implements ISourceService
{
    @Autowired
    private SourceMapper sourceMapper;

    /**
     * 查询范围3分类
     */
    @Override
    public Source selectSourceById(Long id)
    {
        return sourceMapper.selectSourceById(id);
    }

    /**
     * 查询范围3分类列表
     */
    @Override
    public List<Source> selectSourceList(Source source)
    {
        return sourceMapper.selectSourceList(source);
    }

    /**
     * 新增范围3分类
     */
    @Override
    public int insertSource(Source source)
    {
        return sourceMapper.insertSource(source);
    }

    /**
     * 修改范围3分类
     */
    @Override
    public int updateSource(Source source)
    {
        return sourceMapper.updateSource(source);
    }

    /**
     * 批量删除范围3分类
     */
    @Override
    public int deleteSourceByIds(Long[] ids)
    {
        return sourceMapper.deleteSourceByIds(ids);
    }

    /**
     * 删除范围3分类信息
     */
    @Override
    public int deleteSourceById(Long id)
    {
        return sourceMapper.deleteSourceById(id);
    }
}
